package com.huirui.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huirui.server.pojo.dto.ShippingCartDto;
import com.huirui.server.pojo.dto.ShippingCartListDto;
import com.huirui.server.pojo.entity.ShippingCart;
import com.huirui.server.pojo.vo.ShippingCartVo;
import jakarta.validation.Valid;

import java.util.List;

/**
 * @author yujun
 * @description 针对表【t_shipping_cart(购物车表)】的数据库操作Service
 * @createDate 2025-09-21 14:36:59
 */
public interface ShippingCartService extends IService<ShippingCart> {

    void saveShippingCart(@Valid ShippingCartDto shippingCartDto);

    List<ShippingCartVo> listUserShippingCart();

    void updateCartItemQuantity(Long id, Long newQuantity);

    List<ShippingCartVo> listDiscountProducts();


    void removeShippingCartToFavorite(List<Long> ids);

    void batchSaveShippingCart(ShippingCartListDto shippingCartListDto);

    Long countShippingCart();


}
